package org.scau.studentevaluation.client;

import org.scau.studentevaluation.entity.dos.StudentDO;
import org.scau.studentevaluation.entity.response.Result;
import org.scau.studentevaluation.util.ResultUtil;
import org.springframework.stereotype.Component;

import java.util.Collections;
import java.util.List;

/**
 * 熔断降级
 * @Author: x1aolone
 * @Date: 2020/8/27 16:21
 */
@Component
public class StudentClientHystrix implements StudentClient{
    @Override
    public Result<List<StudentDO>> getStudentInfo(String college) {
        return ResultUtil.error(Collections.emptyList());

    }
}
